package com.example.educationplatformbackend.service.Impl;

import com.example.educationplatformbackend.domian.home.Course;
import com.example.educationplatformbackend.mapper.CourseMapper;
import com.example.educationplatformbackend.service.CourseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseService implements CourseServiceImpl {

    @Autowired
    private CourseMapper courseMapper;
    @Override
    public List<Course> course() {
        return courseMapper.course();
    }

    @Override
    public void addcourse(Course course) {
        courseMapper.addcourse(course);
    }

    @Override
    public void deleteCourseById(int id) {
        courseMapper.deleteCourseById(id);
    }

    @Override
    public void updateCourseById(Course course) {
        courseMapper.updateCourseById(course);
    }



}
